package com.hetao.assist.service.util;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class Common {


    public static String getLocalIp() {
        InetAddress address = null;
        try {
            address = InetAddress.getLocalHost();
            return address.getHostAddress();
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
        return "0.0.0.0";
    }
}
